﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Common/Master/PopupDiv.master"
    AutoEventWireup="true" Inherits="Project_Schedule_Edit" Codebehind="Edit.aspx.cs" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <style type="text/css">
        .style1
        {
        	width:90px; text-align:right; padding-top:2px; padding-bottom:2px;
        }
        .style2
        {
        	text-align:left;  padding-top:2px; padding-bottom:2px; padding-left:5px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:Panel ID="pnlMain" runat="server" CssClass="pnlMain" style="height:210px;">
    <table border="0" cellpadding="0" cellspacing="0" style="width: 100%;" class="tbl1">
        
        <tr>
            <td class="style1">
                <asp:Label ID="Label2" runat="server" Text="任务名称："></asp:Label>
            </td>
            <td class="style2">
                <asp:Label ID="lblTaskName" runat="server" Text="Label"></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="style1">
                <asp:Label ID="Label4" runat="server" Text="计划工作量："></asp:Label>
            </td>
            <td class="style2">
                <asp:Label ID="lblTimeLimit" runat="server" Text="Label"></asp:Label>                
                个工日&nbsp;
                <span style="color:Red"> <asp:Label ID="Label1" runat="server" Text="实际工作量："></asp:Label>
                <asp:Label ID="lblWorkload" runat="server" Text="Label"></asp:Label>个工日</span>
            </td>
        </tr>
        <tr>
            <td class="style1">
                <asp:Label ID="Label8" runat="server" Text="最后更新日期："></asp:Label>
            </td>
            <td class="style2">
                <asp:Label ID="lblLastUpdateTime"
                    runat="server" Text="Label"></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="style1">
                <asp:Label ID="Label3" runat="server" Text="最新工作量："></asp:Label>
            </td>
            <td class="style2">
                <asp:TextBox ID="txtWorkload" runat="server" Width="51px" CssClass="txt"></asp:TextBox>
                工日&nbsp;&nbsp;
                <asp:Label ID="Label5" runat="server" Text="完成百分比："></asp:Label>
                <asp:TextBox ID="txtPercent" runat="server" Width="25px" CssClass="txt"></asp:TextBox>
                %<asp:RangeValidator ID="RangeValidator1" runat="server" 
                    ControlToValidate="txtPercent" Display="None" ErrorMessage="百分比应为0-100" 
                    MaximumValue="100" MinimumValue="0" Type="Integer"></asp:RangeValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                    ControlToValidate="txtWorkload" Display="None" ErrorMessage="最新工作量格式不正确" 
                    SetFocusOnError="True" ValidationExpression="\d*"></asp:RegularExpressionValidator>
            </td>
        </tr>        
        <tr>
            <td class="style1">
                <span style="color:Red">*</span>&nbsp;<asp:Label ID="Label6" runat="server" Text="最新进展："></asp:Label>
            </td>
            <td class="style2">
                <asp:TextBox ID="txtRemark" runat="server" Height="60px" TextMode="MultiLine" 
                    Width="230px" CssClass="txt"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ControlToValidate="txtRemark" Display="None" ErrorMessage="请输入最新进展" 
                    SetFocusOnError="True"></asp:RequiredFieldValidator>
                <asp:ValidationSummary ID="ValidationSummary1" runat="server" 
                    ShowMessageBox="True" ShowSummary="False" />
            </td>
        </tr>           
    </table>
    </asp:Panel>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" runat="Server">
    <asp:Button ID="btnSave" runat="server" OnClick="btnSave_Click" Text="保存" />
</asp:Content>
